package com.szdvte.news.action.client;

import java.util.ArrayList;
import java.util.List;

import com.szdvte.news.bean.News;
import com.szdvte.news.service.INewsService;
import com.szdvte.news.util.WiterUtil;

public class NewsClientAction {
	
	private News news;
	private INewsService newsService;
	private List<News> newsList = new ArrayList<News>();
	public void selectNews(){
		newsList = newsService.selectNews(news);
		WiterUtil.witer(newsList, "news");
	}
	public void load(){
		news = newsService.loadNews(news);
		WiterUtil.witer(news);
	}
	public void comments(){
		newsList = newsService.comments(news);
		WiterUtil.witer(newsList, "news");
	}

	public void pic(){
		newsList = newsService.pic(news);
		WiterUtil.witer(newsList, "news");
	}
	public News getNews() {
		return news;
	}
	public void setNews(News news) {
		this.news = news;
	}
	public INewsService getNewsService() {
		return newsService;
	}
	public void setNewsService(INewsService newsService) {
		this.newsService = newsService;
	}
	public List<News> getNewsList() {
		return newsList;
	}
	public void setNewsList(List<News> newsList) {
		this.newsList = newsList;
	}
}
